﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Booking_Hotel.DAL;
using Booking_Hotel.DBML;

namespace Booking_Hotel.BLL
{
    public class SupplierServices
    {
        public static Supplier GetSupplierByID(int supplierID)
        {
            SupplierDAO supplierDAO = new SupplierDAO();
            return supplierDAO.GetSupplierByID(supplierID);
        }

        public static void CreateSupplier(Supplier supplier)
        {
            SupplierDAO supplierDAO = new SupplierDAO();
            supplierDAO.addSupplier(supplier);
        }

        public static void UpdateSupplier(Supplier supplier)
        {
            SupplierDAO supplierDAO = new SupplierDAO();
            supplierDAO.updateSupplier(supplier);
        }
    }
}